package com.docker.demo.service.impl;

import com.docker.demo.dao.StudentMapper;
import com.docker.demo.entity.Student;
import com.docker.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> queryStudent() {
        return studentMapper.selectList(null);
    }
}
